package com.action;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MathAction {

    @Value("${server.port}")
    private String port;

    @GetMapping("/add")
    public String add(int x, int y){
        System.out.println("当前服务器端口是:"+port);
        return x+y+"";
    }
}
